package itdfq.dfq.Creational_Pattern.jiandangongchang;

/**
 * @Author GocChin
 * @Date 2021/3/13 16:56
 * @Blog: itdfq.com
 * @QQ: 909256107
 */
public class Client {
    public static void main(String[] args) {
        System.out.println("段方钦 18031210111");
        try{
            Phone phone;
            String name = XMLUtilPhone.getName();
            phone = PhoneFactory.producePhone(name);
            phone.play();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
